#include "thread.h"

int initThreadPool(threadPool_t *thread,int num){

    thread->workNum=num;
    thread->workArr=(pthread_t*)calloc(num,sizeof(pthread_t));
    makeTaskQueue(&thread->task);
    pthread_mutex_init(&thread->mutex,NULL);
    pthread_cond_init(&thread->cond,NULL);
    return 0;
}
